package com.furtherstar.auth.service;

import java.util.List;

import com.furtherstar.auth.controller.dto.RoleWorkQuery;
import com.furtherstar.core.context.Work;
import com.furtherstar.core.context.WorkWithRoles;
import com.github.pagehelper.PageSerializable;

public interface WorkService {

	List<WorkWithRoles> listUserWorkWithRoles(Long userid);
	
	PageSerializable<Work> queryRoleWorks(RoleWorkQuery roleWorkQuery);

	Long add(Work work);

	Long update(Work work);

	Boolean delete(Long id);

}
